/*
 * @Description: 登录模块
 * @Author: Haor
 * @Date: 2022-04-16 22:31:11
 * @LastEditTime: 2022-04-16 23:25:32
 * @LastEditors: Haor
 */
import { IsNotEmpty, IsString } from 'class-validator'

// 登录dto
export class AuthLoginDto {
	@IsNotEmpty({ message: '用户名不能为空哦' })
	@IsString({ message: '用户名应该为一个字符串' })
	userName: string

	@IsNotEmpty({ message: '密码不能为空哦' })
	@IsString({ message: '密码应该为一个字符串' })
	password: string
}
